﻿using System;
using System.Collections.Generic;
namespace CoreSoft.Frame.Entity
{

    [Serializable]
    /// <summary>
    /// 发货单明细表 
    /// 数据表:dispatchlists
    /// </summary>
    public class Dispatchlists
    {
        #region 构造函数
        public Dispatchlists()
        {
        }
        #endregion
        
        #region 表字段
        /// <summary>
        /// 主键
        /// </summary>
        public String Id
        {
            get;
            set;
        }
        
        /// <summary>
        /// 发货行号
        /// </summary>
        public Int32 DisSeq
        {
            get;
            set;
        }
        
        /// <summary>
        /// 条码值
        /// </summary>
        public String BarCode
        {
            get;
            set;
        }
        
        /// <summary>
        /// 发货单号
        /// </summary>
        public String DispathchCode
        {
            get;
            set;
        }
        
        /// <summary>
        /// 来源表明细ID
        /// </summary>
        public String SourceDid
        {
            get;
            set;
        }
        
        /// <summary>
        /// 销售订单号
        /// </summary>
        public String SoCode
        {
            get;
            set;
        }
        
        /// <summary>
        /// 销售订单行号
        /// </summary>
        public Int32? SoSeq
        {
            get;
            set;
        }
        
        /// <summary>
        /// ERP销售订单子表标识
        /// </summary>
        public Int32? SoDID
        {
            get;
            set;
        }
        
        /// <summary>
        /// ERP销售订单标识
        /// </summary>
        public Int32? SoID
        {
            get;
            set;
        }
        
        /// <summary>
        /// 存货编码
        /// </summary>
        public String CinvCode
        {
            get;
            set;
        }
        
        /// <summary>
        /// 仓库编号
        /// </summary>
        public String WhoCode
        {
            get;
            set;
        }

        /// <summary>
        /// 货位编码
        /// </summary>
        public String PositionCode
        {
            get;
            set;
        }

        /// <summary>
        /// 批次
        /// </summary>
        public String BatchCode
        {
            get;
            set;
        }

        /// <summary>
        /// 发货数量
        /// </summary>
        public Decimal DisQty
        {
            get;
            set;
        }
        
        /// <summary>
        /// 币种
        /// </summary>
        public String Bz
        {
            get;
            set;
        }
        
        /// <summary>
        /// 汇率
        /// </summary>
        public Single? ExchangeRate
        {
            get;
            set;
        }
        
        /// <summary>
        /// 税率
        /// </summary>
        public Single? TaxRate
        {
            get;
            set;
        }
        
        /// <summary>
        /// 原币单价
        /// </summary>
        public Decimal? OriPrice
        {
            get;
            set;
        }
        
        /// <summary>
        /// 原币含税单价
        /// </summary>
        public Decimal? OriTaxPrice
        {
            get;
            set;
        }
        
        /// <summary>
        /// 原币金额
        /// </summary>
        public Decimal? IOriSum
        {
            get;
            set;
        }
        
        /// <summary>
        /// 原币价税合计
        /// </summary>
        public Decimal? IoriTaxSum
        {
            get;
            set;
        }
        
        /// <summary>
        /// 原币税额
        /// </summary>
        public Decimal? IOriTax
        {
            get;
            set;
        }
        
        /// <summary>
        /// 本币单价
        /// </summary>
        public Decimal LocalPrice
        {
            get;
            set;
        }
        
        /// <summary>
        /// 本币含税单价
        /// </summary>
        public Decimal? LocalTaxPrice
        {
            get;
            set;
        }
        
        /// <summary>
        /// 本币金额
        /// </summary>
        public Decimal? ILocalSum
        {
            get;
            set;
        }
        
        /// <summary>
        /// 本币价税合计
        /// </summary>
        public Decimal? ILocalTaxSum
        {
            get;
            set;
        }
        
        /// <summary>
        /// 本币税额
        /// </summary>
        public Decimal? IlocalTax
        {
            get;
            set;
        }
        
        /// <summary>
        /// 组织ID
        /// </summary>
        public String OrgID
        {
            get;
            set;
        }
        
        /// <summary>
        /// 自由项1
        /// </summary>
        public String Free1
        {
            get;
            set;
        }
        
        /// <summary>
        /// 自由项2
        /// </summary>
        public String Free2
        {
            get;
            set;
        }
        
        /// <summary>
        /// 自由项3
        /// </summary>
        public String Free3
        {
            get;
            set;
        }
        
        /// <summary>
        /// 自由项4
        /// </summary>
        public String Free4
        {
            get;
            set;
        }
        
        /// <summary>
        /// 自由项5
        /// </summary>
        public String Free5
        {
            get;
            set;
        }
        
        /// <summary>
        /// 自由项6
        /// </summary>
        public String Free6
        {
            get;
            set;
        }
        
        /// <summary>
        /// 自由项7
        /// </summary>
        public String Free7
        {
            get;
            set;
        }
        
        /// <summary>
        /// 自由项8
        /// </summary>
        public String Free8
        {
            get;
            set;
        }
        
        /// <summary>
        /// 自由项9
        /// </summary>
        public String Free9
        {
            get;
            set;
        }
        
        /// <summary>
        /// 自由项10
        /// </summary>
        public String Free10
        {
            get;
            set;
        }
        
        #endregion
        #region 验证字段是否可以为空
        public List<string> Validation()
        {
            List<string> vMsgList=new List<string>();
            
                    if(Id==null){
                          vMsgList.Add("主键不可以为空！");
                    }
                    else{
                        if(Id.ToString().Trim()=="")
                        {
                              vMsgList.Add("主键不可以为空！");
                        }
                    }
                 
                    if(DisSeq==null){
                          vMsgList.Add("发货行号不可以为空！");
                    }
                    else{
                        if(DisSeq.ToString().Trim()=="")
                        {
                              vMsgList.Add("发货行号不可以为空！");
                        }
                    }
                 
                    if(BarCode==null){
                          vMsgList.Add("条码值不可以为空！");
                    }
                    else{
                        if(BarCode.ToString().Trim()=="")
                        {
                              vMsgList.Add("条码值不可以为空！");
                        }
                    }
                 
                    if(DispathchCode==null){
                          vMsgList.Add("发货单号不可以为空！");
                    }
                    else{
                        if(DispathchCode.ToString().Trim()=="")
                        {
                              vMsgList.Add("发货单号不可以为空！");
                        }
                    }
                 
                    if(CinvCode==null){
                          vMsgList.Add("存货编码不可以为空！");
                    }
                    else{
                        if(CinvCode.ToString().Trim()=="")
                        {
                              vMsgList.Add("存货编码不可以为空！");
                        }
                    }
                 
                    if(DisQty==null){
                          vMsgList.Add("发货数量不可以为空！");
                    }
                    else{
                        if(DisQty.ToString().Trim()=="")
                        {
                              vMsgList.Add("发货数量不可以为空！");
                        }
                    }
                 
                    if(LocalPrice==null){
                          vMsgList.Add("本币单价不可以为空！");
                    }
                    else{
                        if(LocalPrice.ToString().Trim()=="")
                        {
                              vMsgList.Add("本币单价不可以为空！");
                        }
                    }
                 
                    if(OrgID==null){
                          vMsgList.Add("组织ID不可以为空！");
                    }
                    else{
                        if(OrgID.ToString().Trim()=="")
                        {
                              vMsgList.Add("组织ID不可以为空！");
                        }
                    }
                 
            return vMsgList;
        }
        
        
        #endregion
    }
}